package org.dllwh.utils.google.config;

import cn.hutool.setting.dialect.Props;
import cn.hutool.setting.dialect.PropsUtil;

/**
 * 把今天最好的表现当作明天最新的起点．．～
 * <p>
 * Today the best performance as tomorrow the newest starter!
 *
 * @ClassName OkHttpConfig
 * @Description
 * @Date 2025-05-30 9:28
 * @版本 V 1.0.1
 * @since JDK 17
 */
public final class OkHttpConfig {
    static Props props = PropsUtil.get("properties/okhttp.properties");
    /**
     * ,单位秒
     */
    public static long callTimeout =  props.getLong("callTimeout");;
    /**
     * 连接超时时间,单位秒，默认设置10秒
     */
    public static long connectTimeout = props.getLong("connectTimeout");
    /**
     * 内容读取超时时间,单位秒，默认是30秒
     */
    public static long readTimeout = props.getLong("readTimeout");
    /**
     * 内容写入超时时间,单位秒，默认30秒
     */
    public static long writeTimeout = props.getLong("writeTimeout");
    /**
     *
     */
    public static boolean retryOnConnectionFailure = props.getBool("retryOnConnectionFailure",true);

    /**
     * 指定重试次数，默认重试5次
     */
    public static int maxLoadTimes = 5;
}
